<template>
  <div class="my-button" @click="click">biu~点击</div>
</template>

<script>
export default {
methods:{
  click(){
    alert('点击咯')
  }
}
}
</script>

<style>
.my-button{
    width: 80px;
    height: 30px;
    margin:auto;
    line-height: 30px;
    background-color: cadetblue;
    border: 0;
    border-radius: 5px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}
</style>